package com.xyh.transaction.utils;

import com.xyh.transaction.entity.Menu;
import com.xyh.transaction.entity.vo.MenuOptionsVO;
import com.xyh.transaction.entity.vo.MetaPropsVO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

public class WebUtil {

    public static void renderString(HttpServletResponse response, String string) {

        try {
            response.setStatus(200);
            response.setCharacterEncoding("utf-8");
            response.setHeader("Content-Type", "application/json");
            response.getWriter().write(string);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
